import Layout from '@/views/layout/Layout'


const  discount= { //营销中心
    path: "/marketing",
    component: Layout,
    name: "marketing",
    alwaysShow: true,
    meta: {
        title: "营销中心",
        icon: "pinggusi",
        roles: 'marketing_center'
    },
    children: [
        {
            path: '/discount',
            component: () => import('@/views/marketing/discount/index'),
            name: 'discount',
            meta: {
                title: '优惠券',
                roles: 'discount'
            }
        },
        {
            path: '/discountDetail',
            component: () => import('@/views/marketing/discountDetail/detail.vue'),
            name: 'discountDetail',
            hidden:true,
            meta: {
                title: '优惠券详情',
                noCache:true
            }
        },
        {
            path: '/newDiscount',
            component: () => import('@/views/marketing/newDiscount/newDiscount.vue'),
            name: 'newDiscount',
            hidden:true,
            meta: {
                title: '创建优惠券',
                noCache:true
            }
        },
    ]
    
}
export default discount